.Dd July 28, 2022
.Dt fsapfsinfo
.Os libfsapfs
.Sh NAME
.Nm fsapfsinfo
.Nd determines information about an Apple File System (APFS)
.Sh SYNOPSIS
.Nm fsapfsinfo
.Op Fl B Ar bodyfile
.Op Fl E Ar identifier
.Op Fl f Ar file_system_index
.Op Fl F Ar path
.Op Fl o Ar offset
.Op Fl p Ar password
.Op Fl r Ar password
.Op Fl dhHvV
.Ar source
.Sh DESCRIPTION
.Nm fsapfsinfo
is a utility to determine information about an Apple File System (APFS)
.Pp
.Nm fsapfsinfo
is part of the
.Nm libfsapfs
package.
.Nm libfsapfs
is a library to access the Apple File System (APFS) format
.Pp
.Ar source
is the source file.
.Pp
The options are as follows:
.Bl -tag -width Ds
.It Fl B Ar bodyfile
output file system information as a bodyfile
.It Fl d
calculate a MD5 hash of a file entry to include in the bodyfile
.It Fl E Ar identifier
show information about a specific file system entry or "all"
.It Fl f Ar file_system_index
show information about a specific file system or "all"
.It Fl F Ar path
show information about a specific file entry path
.It Fl h
shows this help
.It Fl H
shows the file system hierarchy
.It Fl o Ar offset
specify the volume offset
.It Fl p Ar password
specify the password
.It Fl r Ar password
specify the recovery password
.It Fl v
verbose output to stderr
.It Fl V
print version
.El
.Sh ENVIRONMENT
None
.Sh FILES
None
.Sh EXAMPLES
.Bd -literal
# fsapfsinfo -o 20480 image.dmg
fsapfsinfo 20220728
.sp
Apple File System (APFS) information:
.sp
Container information:
        Identifier                      : d08a9fa0-d5a5-458b-813e-ebf9bf5d5338
        Number of volumes               : 1
.sp
Volume: 1 information:
        Identifier                      : 458ed10d-8ac3-4af1-8dfd-3954d151a3f3
        Name                            : apfs_test
        Compatible features             : 0x00000002
                (NX_FEATURE_LCFD)

        Incompatible features           : 0x00000001
                (NX_INCOMPAT_VERSION1)

        Read-only compatible features   : 0x00000000

        Number of snapshots             : 0
.sp
.Ed
.Sh DIAGNOSTICS
Errors, verbose and debug output are printed to stderr when verbose output \-v is enabled.
Verbose and debug output are only printed when enabled at compilation.
.Sh BUGS
Please report bugs of any kind to <joachim.metz@gmail.com> or on the project website:
https://github.com/libyal/libfsapfs/
.Sh AUTHOR
These man pages were written by Joachim Metz.
.Sh COPYRIGHT
Copyright 2018-2022, Joachim Metz <joachim.metz@gmail.com>.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
.Sh SEE ALSO
.Xr fsapfsmount 1
